/*  1:   */ package com.rinsi.app.azsb.azzl.zqyjs;
/*  2:   */ 
/*  3:   */ import com.rinsi.core.CoreCache;
/*  4:   */ import com.rinsi.core.service.CoreSimpleService;
/*  5:   */ import com.rinsi.util.FileUtil;
/*  6:   */ import com.rinsi.util.ListUtil;
/*  7:   */ import com.rinsi.util.MapUtil;
/*  8:   */ import com.rinsi.util.SpringContextUtil;
/*  9:   */ import java.util.List;
/* 10:   */ import java.util.Map;
/* 11:   */ import org.mybatis.spring.SqlSessionTemplate;
/* 12:   */ import org.springframework.stereotype.Service;
/* 13:   */ 
/* 14:   */ @Service
/* 15:   */ public class ZqyjsService
/* 16:   */   extends CoreSimpleService
/* 17:   */ {
/* 18:   */   public void afterIndex(Map<String, Object> model, Map<String, Object> rMap)
/* 19:   */   {
/* 20:22 */     Map<String, Object> params = getParams(model);
/* 21:   */     
/* 22:24 */     Map<String, Object> config = getConfig(model);
/* 23:   */     
/* 24:26 */     List<Map<String, Object>> modules = CoreCache.getCacheList(MapUtil.getString(params, "UID"), "modules");
/* 25:   */     
/* 26:28 */     List<Map<String, Object>> sub_rights = ListUtil.subList(modules, "MODULE_NO_PRE='500004'");
/* 27:   */     
/* 28:30 */     rMap.put("azsbxx", getSqlSessionTemplate().selectOne("azsb.get", params));
/* 29:   */     
/* 30:32 */     rMap.put("userxx", CoreCache.getCacheMap(MapUtil.getString(params, "UID"), "user"));
/* 31:   */     
/* 32:34 */     model.put("sub_rights", ListUtil.listToMap(sub_rights, "MODULE_TYPE"));
/* 33:   */     
/* 34:36 */     String mod = MapUtil.getString((Map)model.get("module"), "MODULE_NO");
/* 35:   */     
/* 36:38 */     String filepath = (String)((Map)SpringContextUtil.getBean("config")).get("filepath") + mod + "/";
/* 37:   */     
/* 38:40 */     String ID = params.get("AZSB_ID") + "/";
/* 39:   */     
/* 40:42 */     filepath = filepath + ID;
/* 41:   */     
/* 42:44 */     List<Map<String, Object>> files = FileUtil.getFileList(filepath);
/* 43:   */     
/* 44:46 */     params.put("MODULE_NO", mod);
/* 45:   */     
/* 46:48 */     rMap.put("kjmc", getSqlSessionTemplate().selectOne(namespace(config) + ".getKJMC", params));
/* 47:   */     
/* 48:50 */     model.putAll(params);
/* 49:   */     
/* 50:52 */     model.put("files", files);
/* 51:   */   }
/* 52:   */ }


/* Location:           D:\Users\Desktop\shanxi\项目\sxazmis\WEB-INF\classes\
 * Qualified Name:     com.rinsi.app.azsb.azzl.zqyjs.ZqyjsService
 * JD-Core Version:    0.7.0.1
 */